:: This script compiles and runs AmurCalendar2014 application 
:: 	for PC-based systems
::
:: Author: Samantha Choy
:: Date: August 11, 2014
:: For ICS314 final project

@echo off

:: Variables
set PROJECT=../AmurCalendar2014
set BINMAIN=%PROJECT%/bin
set MAINFILE=%BINMAIN%/main/EventInputI.class
set TEXTFILE=applist_v3.txt
set URL=https://code.google.com/p/ics314-sum14-amur-cal/

:: Main 

:: **TAKE THIS OUT BEFORE TURNING IN** 
echo Checking Java version for testing...
echo(
java -version
echo( 
echo( 
:: **TAKE THIS OUT BEFORE TURNING IN** 

echo Compiling AmurCalendar2014 application...

echo Compiling classes...
javac -sourcepath %PROJECT%/src -d %BINMAIN% @%TEXTFILE%
echo ...

echo Compiling main...
javac -sourcepath %PROJECT%/src -d %BINMAIN% -classpath %BINMAIN% %PROJECT%/src/main/EventInputI.java
echo ...
echo 

echo Done!
echo Starting AmurCalendar2014..."
timeout /nobreak 3

cls

java -classpath %BINMAIN% main.EventInputI


echo 
echo 
pause

set PROJECT=
set BINMAIN=
set MAINFILE=
set TEXTFILE=
set URL=